package com.ruoyi.oc.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售订单明细对象 sales_order_detail
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public class SalesOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细编号 */
    @Excel(name = "明细编号")
    private String detailId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String goodsId;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long quantity;

    /** 销售单价 */
    @Excel(name = "销售单价")
    private BigDecimal unitPrice;

    public void setDetailId(String detailId) 
    {
        this.detailId = detailId;
    }

    public String getDetailId() 
    {
        return detailId;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("orderId", getOrderId())
            .append("goodsId", getGoodsId())
            .append("quantity", getQuantity())
            .append("unitPrice", getUnitPrice())
            .append("createTime", getCreateTime())
            .toString();
    }
}
